
while(1){
	ret = command.get_quit();
	command.print(ret);
	if(ret){
		break;
	}
	command.send_cmd("uni_ap82_test goto_sleep\r\n");
	command.sleep(500);
	command.send_cmd("reboot\r\n");
	ret = command.wait_string("iot server link up",30*1000);
	if(ret == 0){
		command.print("connect fail");
		continue;
	}
	command.sleep(1000);
	var i;
	for(i = 0; i < 1; i++){
		command.play("nihaoxiaoxin.wav");
		command.wait_string("Start running asr_recv thread",5000);
		command.play("jintiantianqi.wav");
		command.wait_string("Asr event handle event:",2000);
		command.wait_string("local_speex_play_thread end",10000);
		command.sleep(1000);
	}
}

